/**
 * @author 鍚存倍
 * @since 2022/10/13
 * 21:30
 */
package com.windgo.controller;

import com.windgo.bean.MarketRegion;
import com.windgo.bean.common.BaseRespVo;
import com.windgo.bean.common.CommonData;
import com.windgo.service.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin/region")
public class RegionController {
    @Autowired
    RegionService regionService;
    @RequestMapping("list")
    public BaseRespVo list(MarketRegion marketRegion){
        CommonData data = regionService.select(marketRegion);
        return BaseRespVo.ok(data);
    }
}

